import { defineStore } from 'pinia'
import { ref } from "vue";

export const useCounterStore = defineStore('userInfo', () => {
    const userInfo = ref({
        username: '',
        password: '',
        token: '',
        phone: '',
        photo:''
    })
    const setUser = (info) => {
        userInfo.value = info
    }

    return { userInfo, setUser }
}, {
    persist: true,
},)